package com.heima.App;

import com.heima.Dao.Order;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppOrder {
    public static void main(String[] args) {
        ApplicationContext ctx =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");

        System.out.println("-------------");

        //4.获取bean
        Order orderDao = (Order) ctx.getBean("orderDao");
        orderDao.one();
    }
}
